import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// import 'amfe-flexible'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import DataVVue3 from '@kjgl77/datav-vue3'
import moment from 'moment'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// import './global.js'; 
// 引入swiper的样式
import 'swiper/css/swiper.css'
const app = createApp(App)
app.config.globalProperties.$moment = moment
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(store)
app.use(router)
app.use(ElementPlus, {
    locale: zhCn,
})
app.use(DataVVue3)
app.mount("#app");
